home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er 1992 March
/
64er_Magazin_92-03_1992_Markt__Technik_de_Side_A.d64
/
page overfl .seq
< prev
next >
Wrap
Text File
|
2022-10-26
|
1KB
|
39 lines
;---------------------------------------
;- page-overflow (w) by pit '91 -
;---------------------------------------
startlo = $fb
starthi = $fc
ziello = $fd
zielhi = $fe
*= $1000
lda #$00 ;low-byte startadr
sta startlo;zeropage schreiben
lda #$10 ;high-byte startadr
sta starthi;zeropage schreiben
lda #$00 ;low-byte zieladr in
sta ziello ;zeropage schreiben
lda #$40 ;hi-byte zieladr in
sta zielhi ;zeropage schreiben
ldy #$00 ;zaehler auf $00
loop lda (startlo),y;aus $1000,y
sta (ziello),y ;in $4000,y
iny ;schreiben
bne loop ;
inc starthi ;solange
inc zielhi ;bis $2fff
check lda starthi ;bytes
cmp #$40 ;kopiert wurden
bne loop
rts ;rueckkehr
;---------------------------------------
;------$fb/$fc= $00 $10 --> $1000-------
;------$fd/$fe= $00 $40 --> $4000-------
;---------------------------------------